public final class Global
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static LogUtil |
logger
The LogUtil reference used for logging data in the program.
|
private static java.io.File |
output
The output directory for storing results.
|
| Modifier | Constructor and Description |
|---|---|
private |
Global()
Private constructor for preventing instantiation of the class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
destroyLogger()
Destroys the LogUtil reference.
|
static LogUtil |
getLogger()
Gets the logger.
|
static java.io.File |
getOutput()
Gets the output directory for storing results.
|
static void |
makeLogger(LogLevel maxGranularity,
boolean[] fileLogs,
boolean[] terminalLogs)
Instantiates the logger field.
|
static boolean |
setOutput(java.io.File file)
Sets the output directory for storing results.
|
private static LogUtil logger
private static java.io.File output
private Global()
public static void makeLogger(LogLevel maxGranularity, boolean[] fileLogs, boolean[] terminalLogs)
maxGranularity - the maximum granularity of the log messages.fileLogs - the boolean array indicating file log settings.terminalLogs - the boolean array indicating terminal output
settings.public static void destroyLogger()
public static LogUtil getLogger()
public static boolean setOutput(java.io.File file)
file - the File representing the new output directory.public static java.io.File getOutput()